num = int(input())
booleanValue = bool(num)
result = int(booleanValue)
print(result)